Skip to content

Fix: Filament widget for Livewire 4 compatibility#12

Merged
DarkGhostHunter merged 7 commits intoLaragear:2.xfrom
ericimthorn:2.x
Apr 16, 2026
Merged

Fix: Filament widget for Livewire 4 compatibility#12
DarkGhostHunter merged 7 commits intoLaragear:2.xfrom
ericimthorn:2.x

Conversation

@ericimthorn
Copy link
Copy Markdown
Contributor

Description

This feature/fix allows to run the Filement widget in Filament 5 (Livewire 4)

  • Livewire 4 injects <!--[if BLOCK]><![endif]--> HTML comment markers around Blade control structures (@if, @foreach, @unless) to track DOM boundaries. The current template uses these directives inside the x-data HTML attribute, which is pure JavaScript. The injected HTML comments break the JS parser.

  • Also Nested single quotes in querySelector('script[src*='turnstile/v0/api.js']') now cause syntax errors.

@DarkGhostHunter
Copy link
Copy Markdown
Contributor

Sorry for the late showing. Checks are running now but tests are failing. You can give it another go.

The Js gets escaped, so the quotes have to reflect that
@sonarqubecloud
Copy link
Copy Markdown

@DarkGhostHunter DarkGhostHunter merged commit 7658007 into Laragear:2.x Apr 16, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants